<script setup>
    import { reactive, ref,watch } from 'vue';
    const info = reactive({
        uname:'',
        password:''
    })
    watch(info,(newVal,oldVal) => {
        console.log(oldVal, newVal)
    })
</script>
    
<template>
    uname:<input type="text"  v-model="info.uname">
    password<input type="password"  v-model="info.password">
</template>
    
<style>
    
</style>